@extends('layouts.app')
@section('content')
    <div class="mb-3 flex flex-wrap justify-between">

        <a href="{{route('repositories.create')}}" role="button" class="btn btn-default btn-primary">创建作品</a>
        <tig-global-search></tig-global-search>
    </div>

    @foreach($repositories as $repository)
        <tig-repository-item :repository="{{json_encode($repository)}}"></tig-repository-item>
    @endforeach
    {{--<tig-repository-page :repositories_paginated="{{ json_encode($repositories) }}"></tig-repository-page>--}}
    {{$repositories->links()}}
@endsection